package com.liang.jiekou.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liang.jiekou.entity.INVMB;
import com.liang.jiekou.mapper.INVMBMapper;
import com.liang.jiekou.service.INVMBService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class INVMBServiceImpl implements INVMBService {


    @Resource
    private INVMBMapper invmbMapper;


    @Override
    public INVMB selectINVMB(String MB001) {
        return invmbMapper.getINVMBByMB001(MB001);
    }

    @Override
    public IPage<Map<String, Object>> select(Page<INVMB> page, String startcreate,String endcreate,String startupdate,String endupdate) {

        return invmbMapper.select(page,startcreate,endcreate,startupdate,endupdate);
    }




//    @Override
//    public List<Map<String, Object>> selectByPage(int page, int size) {
//        int offset = (page - 1) * size;
//        return invmbMapper.selectByPage(offset, size);
//    }

}
